package com.xianniu.ltc.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONAware;
import com.alibaba.fastjson.JSONObject;
import com.rebuild.web.BaseController;
import com.xianniu.ltc.service.XnStatisticsEnumService;
import com.xxl.sso.core.entity.ReturnT;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping(value = "/xnStatisticsEnum")
public class XnStatisticsEnumController extends BaseController {
    @Autowired
    private XnStatisticsEnumService xnStatisticsEnumService;

    @GetMapping("/getTimeGroupList")
    public JSONArray getTimeGroupList(){
        return xnStatisticsEnumService.getTimeGroupList();
    }
}
